package com.xzj.admin.boot.mapper;

import com.xzj.admin.base.domain.gateway.XzjRouterConfigDefinition;
import com.xzj.admin.boot.domain.entity.SysGatewayRouter;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: xzj-admin
 * @ClassName: SysGatewayRouterMapper
 * @description: 网关路由管理;(sys_gateway_router)表数据库访问层
 * @author: XiaZunJun
 * @create: 2024-10-12 14:28
 */
@Mapper
public interface SysGatewayRouterMapper {


    /**
     * 分页查询指定行数据
     *
     * @param sysGatewayRouter 查询条件
     * @return 对象列表
     */
    List<SysGatewayRouter> queryRouters(SysGatewayRouter sysGatewayRouter);

    void insertRouter(SysGatewayRouter sysGatewayRouter);

    void updateRouter(SysGatewayRouter sysGatewayRouter);

    void deleteRouterById(String id);

    void deleteRouterConfigs(String routerId);

    int deleteRouterConfigsById(String id);

    void updateRouterConfig(XzjRouterConfigDefinition routerConfigDefinition);

    void batchInsertRouterConfig(List<XzjRouterConfigDefinition> list);

}
